//    Openbravo POS is a point of sales application designed for touch screens.
//    Copyright (C) 2007-2009 Openbravo, S.L.
//    http://www.openbravo.com/product/pos
//
//    This file is part of Openbravo POS.
//
//    Openbravo POS is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or
//    (at your option) any later version.
//
//    Openbravo POS is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with Openbravo POS.  If not, see <http://www.gnu.org/licenses/>.

package com.openbravo.bean.sales;

import e.odbo.data.bean.I_AutoGeneratorStringKey;
import e.odbo.data.bean.I_BaseBean;

/**
 *
 * @author adrianromero
 */
public class SharedTicketInfo implements I_BaseBean<String>,I_AutoGeneratorStringKey {
    
    private static final long serialVersionUID = 7640633837719L;
    private String id;
    private String name;
    private String m_sGroupName;
    private boolean isLocked;
    private String locationId;
    private String lockUserId;
    
    /** Creates a new instance of SharedTicketInfo */
    public SharedTicketInfo() {
    }

    public SharedTicketInfo(String id, String name, String m_sGroupName) {
        this.id = id;
        this.name = name;
        this.m_sGroupName = m_sGroupName;
    }
    
    public String getId() {
        return id;
    }
    
    public String getName() {
        return name;
    }

    public String getM_sGroupName() {
        return m_sGroupName;
    }

     public boolean isGroupTicket(){
        return m_sGroupName!=null&&!m_sGroupName.isEmpty();
    }

    public String getKey() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setM_sGroupName(String m_sGroupName) {
        this.m_sGroupName = m_sGroupName;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setKey(String key) {
        this.id=key;
    }

	public boolean isLocked() {
		return isLocked;
	}

	public void setLocked(boolean isLocked) {
		this.isLocked = isLocked;
	}

	public String getLocationId() {
		return locationId;
	}

	public void setLocationId(String locationId) {
		this.locationId = locationId;
	}

	public String getLockUserId() {
		return lockUserId;
	}

	public void setLockUserId(String lockUserId) {
		this.lockUserId = lockUserId;
	}
}
